/**
 * Generate time : 2011-08-17 15:35:34
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ca.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCA4800
 * 
 */
public class ZMCA4800 extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdManageDepartmentId = " "; /* 安全主管部门 */
	private String fdResponseDepartmentId = " "; /* 三违单位 */
	private String fdDate = " "; /* 三违时间 */
	private String fdWorknum = " "; /* 三违班次 */
	private String fdPlace = " "; /* 三违地点 */
	private String fdClassify = " "; /* 三违分类 */
	private String fdContent = " "; /* 违章事实 */
	private String fdResponsibilityPeople = " "; /* 责任人 */
	private String fdCheckPeople = " "; /* 检查人 */
	private String fdSourceClassify = " "; /* 三违来源 */
	private String fdWorkface = " "; /* 所在工作面 */
	private String fdPath = " "; /* 所在巷道 */
	private String fdWorknoteId = " "; /* 巡检工单主键 */
	private String fd5examine = " "; /* 五个到位分类 */
	private String fdQualityStandard = " "; /* 质量标准化分类 */
	private String fdIsPenalty = " "; /* 是否罚款 */
	private String fdIsTraining = " "; /* 是否培训 */
	private String fdSuggestion = " "; /* 三违处理意见 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdManageDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("安全主管部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponseDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDate");
		eiColumn.setFieldLength(19);
		eiColumn.setDescName("三违时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorknum");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违班次");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPlace");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("三违地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdContent");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("违章事实");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponsibilityPeople");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("责任人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCheckPeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("检查人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSourceClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorkface");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("所在工作面");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPath");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("所在巷道");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdWorknoteId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("巡检工单主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fd5examine");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("五个到位分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdQualityStandard");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("质量标准化分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsPenalty");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("是否罚款");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsTraining");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("是否培训");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSuggestion");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("三违处理意见");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCA4800() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdManageDepartment - 安全主管部门
	 * 
	 * @return the fdManageDepartment
	 */
	public String getFdManageDepartmentId() {
		return this.fdManageDepartmentId;
	}

	/**
	 * set the fdManageDepartment - 安全主管部门
	 */
	public void setFdManageDepartmentId(String fdManageDepartmentId) {
		this.fdManageDepartmentId = fdManageDepartmentId;
	}

	/**
	 * get the fdResponseDepartmentId - 三违单位
	 * 
	 * @return the fdResponseDepartmentId
	 */
	public String getFdResponseDepartmentId() {
		return this.fdResponseDepartmentId;
	}

	/**
	 * set the fdResponseDepartmentId - 三违单位
	 */
	public void setFdResponseDepartmentId(String fdResponseDepartmentId) {
		this.fdResponseDepartmentId = fdResponseDepartmentId;
	}

	/**
	 * get the fdDate - 三违时间
	 * 
	 * @return the fdDate
	 */
	public String getFdDate() {
		return this.fdDate;
	}

	/**
	 * set the fdDate - 三违时间
	 */
	public void setFdDate(String fdDate) {
		this.fdDate = fdDate;
	}

	/**
	 * get the fdWorknum - 三违班次
	 * 
	 * @return the fdWorknum
	 */
	public String getFdWorknum() {
		return this.fdWorknum;
	}

	/**
	 * set the fdWorknum - 三违班次
	 */
	public void setFdWorknum(String fdWorknum) {
		this.fdWorknum = fdWorknum;
	}

	/**
	 * get the fdPlace - 三违地点
	 * 
	 * @return the fdPlace
	 */
	public String getFdPlace() {
		return this.fdPlace;
	}

	/**
	 * set the fdPlace - 三违地点
	 */
	public void setFdPlace(String fdPlace) {
		this.fdPlace = fdPlace;
	}

	/**
	 * get the fdClassify - 三违分类
	 * 
	 * @return the fdClassify
	 */
	public String getFdClassify() {
		return this.fdClassify;
	}

	/**
	 * set the fdClassify - 三违分类
	 */
	public void setFdClassify(String fdClassify) {
		this.fdClassify = fdClassify;
	}

	/**
	 * get the fdContent - 违章事实
	 * 
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}

	/**
	 * set the fdContent - 违章事实
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}

	/**
	 * get the fdResponsibilityPeople - 责任人
	 * 
	 * @return the fdResponsibilityPeople
	 */
	public String getFdResponsibilityPeople() {
		return this.fdResponsibilityPeople;
	}

	/**
	 * set the fdResponsibilityPeople - 责任人
	 */
	public void setFdResponsibilityPeople(String fdResponsibilityPeople) {
		this.fdResponsibilityPeople = fdResponsibilityPeople;
	}

	/**
	 * get the fdCheckPeople - 检查人
	 * 
	 * @return the fdCheckPeople
	 */
	public String getFdCheckPeople() {
		return this.fdCheckPeople;
	}

	/**
	 * set the fdCheckPeople - 检查人
	 */
	public void setFdCheckPeople(String fdCheckPeople) {
		this.fdCheckPeople = fdCheckPeople;
	}

	/**
	 * get the fdSourceClassify - 三违来源
	 * 
	 * @return the fdSourceClassify
	 */
	public String getFdSourceClassify() {
		return this.fdSourceClassify;
	}

	/**
	 * set the fdSourceClassify - 三违来源
	 */
	public void setFdSourceClassify(String fdSourceClassify) {
		this.fdSourceClassify = fdSourceClassify;
	}

	/**
	 * get the fdWorkface - 所在工作面
	 * 
	 * @return the fdWorkface
	 */
	public String getFdWorkface() {
		return this.fdWorkface;
	}

	/**
	 * set the fdWorkface - 所在工作面
	 */
	public void setFdWorkface(String fdWorkface) {
		this.fdWorkface = fdWorkface;
	}

	/**
	 * get the fdPath - 所在巷道
	 * 
	 * @return the fdPath
	 */
	public String getFdPath() {
		return this.fdPath;
	}

	/**
	 * set the fdPath - 所在巷道
	 */
	public void setFdPath(String fdPath) {
		this.fdPath = fdPath;
	}

	/**
	 * get the fdWorknoteId - 巡检工单主键
	 * 
	 * @return the fdWorknoteId
	 */
	public String getFdWorknoteId() {
		return this.fdWorknoteId;
	}

	/**
	 * set the fdWorknoteId - 巡检工单主键
	 */
	public void setFdWorknoteId(String fdWorknoteId) {
		this.fdWorknoteId = fdWorknoteId;
	}

	/**
	 * get the fd5examine - 五个到位分类
	 * 
	 * @return the fd5examine
	 */
	public String getFd5examine() {
		return this.fd5examine;
	}

	/**
	 * set the fd5examine - 五个到位分类
	 */
	public void setFd5examine(String fd5examine) {
		this.fd5examine = fd5examine;
	}

	/**
	 * get the fdQualityStandard - 质量标准化分类
	 * 
	 * @return the fdQualityStandard
	 */
	public String getFdQualityStandard() {
		return this.fdQualityStandard;
	}

	/**
	 * set the fdQualityStandard - 质量标准化分类
	 */
	public void setFdQualityStandard(String fdQualityStandard) {
		this.fdQualityStandard = fdQualityStandard;
	}

	/**
	 * get the fdIsPenalty - 是否罚款
	 * 
	 * @return the fdIsPenalty
	 */
	public String getFdIsPenalty() {
		return this.fdIsPenalty;
	}

	/**
	 * set the fdIsPenalty - 是否罚款
	 */
	public void setFdIsPenalty(String fdIsPenalty) {
		this.fdIsPenalty = fdIsPenalty;
	}

	/**
	 * get the fdIsTraining - 是否培训
	 * 
	 * @return the fdIsTraining
	 */
	public String getFdIsTraining() {
		return this.fdIsTraining;
	}

	/**
	 * set the fdIsTraining - 是否培训
	 */
	public void setFdIsTraining(String fdIsTraining) {
		this.fdIsTraining = fdIsTraining;
	}

	/**
	 * get the fdSuggestion - 处理意见
	 * 
	 * @return the fdSuggestion
	 */
	public String getFdSuggestion() {
		return this.fdSuggestion;
	}

	/**
	 * set the fdSuggestion - 处理意见
	 */
	public void setFdSuggestion(String fdSuggestion) {
		this.fdSuggestion = fdSuggestion;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdManageDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdManageDepartmentId")), fdManageDepartmentId));
		setFdResponseDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponseDepartmentId")), fdResponseDepartmentId));
		setFdDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDate")), fdDate));
		setFdWorknum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknum")), fdWorknum));
		setFdPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlace")), fdPlace));
		setFdClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassify")), fdClassify));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdResponsibilityPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponsibilityPeople")), fdResponsibilityPeople));
		setFdCheckPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckPeople")), fdCheckPeople));
		setFdSourceClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSourceClassify")), fdSourceClassify));
		setFdWorkface(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkface")), fdWorkface));
		setFdPath(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPath")), fdPath));
		setFdWorknoteId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknoteId")), fdWorknoteId));
		setFd5examine(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fd5examine")), fd5examine));
		setFdQualityStandard(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdQualityStandard")), fdQualityStandard));
		setFdIsPenalty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPenalty")), fdIsPenalty));
		setFdIsTraining(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsTraining")), fdIsTraining));
		setFdSuggestion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSuggestion")), fdSuggestion));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdManageDepartmentId", StringUtils.toString(fdManageDepartmentId, eiMetadata.getMeta("fdManageDepartmentId")));
		map.put("fdResponseDepartmentId", StringUtils.toString(fdResponseDepartmentId, eiMetadata.getMeta("fdResponseDepartmentId")));
		map.put("fdDate", StringUtils.toString(fdDate, eiMetadata.getMeta("fdDate")));
		map.put("fdWorknum", StringUtils.toString(fdWorknum, eiMetadata.getMeta("fdWorknum")));
		map.put("fdPlace", StringUtils.toString(fdPlace, eiMetadata.getMeta("fdPlace")));
		map.put("fdClassify", StringUtils.toString(fdClassify, eiMetadata.getMeta("fdClassify")));
		map.put("fdContent", StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));
		map.put("fdResponsibilityPeople", StringUtils.toString(fdResponsibilityPeople, eiMetadata.getMeta("fdResponsibilityPeople")));
		map.put("fdCheckPeople", StringUtils.toString(fdCheckPeople, eiMetadata.getMeta("fdCheckPeople")));
		map.put("fdSourceClassify", StringUtils.toString(fdSourceClassify, eiMetadata.getMeta("fdSourceClassify")));
		map.put("fdWorkface", StringUtils.toString(fdWorkface, eiMetadata.getMeta("fdWorkface")));
		map.put("fdPath", StringUtils.toString(fdPath, eiMetadata.getMeta("fdPath")));
		map.put("fdWorknoteId", StringUtils.toString(fdWorknoteId, eiMetadata.getMeta("fdWorknoteId")));
		map.put("fd5examine", StringUtils.toString(fd5examine, eiMetadata.getMeta("fd5examine")));
		map.put("fdQualityStandard", StringUtils.toString(fdQualityStandard, eiMetadata.getMeta("fdQualityStandard")));
		map.put("fdIsPenalty", StringUtils.toString(fdIsPenalty, eiMetadata.getMeta("fdIsPenalty")));
		map.put("fdIsTraining", StringUtils.toString(fdIsTraining, eiMetadata.getMeta("fdIsTraining")));
		map.put("fdSuggestion", StringUtils.toString(fdSuggestion, eiMetadata.getMeta("fdSuggestion")));

		return map;

	}
}